const ApiPath = {
  BASE_URL: {
    DEV: 'http://localhost:3000',
    PRO: 'http://localhost:8686/finance/api',
    PRO_RAP2: 'http://rap2api.taobao.org/app/mock/309477'
  },
  COUNT: '/count',
  LIST: '/list',
  INSERT: '/insert',
  UPDATE: '/update',
  REMOVE: '/remove',
  CATEGORY: '/category',
  ADD: '/add',
  EDIT: '/edit',
  DELETE: '/delete'
};

const BaseUrl = () => {
  return process.env.NODE_ENV === 'development' ? ApiPath.BASE_URL.DEV : ApiPath.BASE_URL.PRO;
};

export { ApiPath, BaseUrl };
